{% extends "base.html" %}
{% block title %} show the paper {% endblock %}
{% block style %}
{% endblock %}
{% block _title %} <h1> The Paper you wanted  </h1>
{% endblock %}

{% block content %}

	{% if error  %}
		<p style="color:red;"> no paper exists! </p>
	{% else %}
		<ul>	
				<li> {{ paper.title }} ({{ paper.get_class_type }})<a href="/paper/edit/{{ paper.id }}">[编辑此论文]</a></li>
				<hr/>	
				created by:
				<a href="/people/{{ paper.first_au.id }}">{{ paper.first_au }} </a> <br/>
					
				{% if paper.other_au %}
				other authors:{% include "o_au_add.html"%} <br/>
				{% for au in paper.other_au.all %}
					<a href="/people/{{ au.id }}">{{ au }} </a>
				{% endfor %}
				{% endif %} 
				<br/>pub date : {{ paper.pub_date|date:"Y年n月" }} 
				<br/>publisher : {{ paper.publication }} 
				<br/>Abstract:{% include "abs_edit.html" %} <p> {{ paper.abstract }} <br/> </p>
			 <br/>						
					pic缩略图:{% include "pic_upload.html" %} </br>
					<div class='p-pic-box'  >
					{% load thumbnail %}
					 {% for p in pic.all %}
						<a href="{{ p.image.url}}" ><img src="{{ p.image.path|thumbnail:"width=200,height=200"  }}" class="paper"/></a>
					 {% endfor %} 
				</div>
				 <br/>
				Tag:{% include "tag_add.html" %}
				 <br/>

						 {% for tag in paper.all_the_tags %}
							<a href="/tag/{{ tag.title }}"> {{ tag.title }} </a>
						 {% endfor %}
		</ul>	
	{% endif %}
{%	endblock %}

